package org.chenbingkang.esper.listener;

import com.espertech.esper.client.EventBean;
import com.espertech.esper.client.UpdateListener;

public class TeamEventListener  implements UpdateListener {

    @Override
    public void update(EventBean[] newEvents, EventBean[] oldEvents) {
        EventBean event = newEvents[0];
        System.out.println(String.format("teamName: %s, totalSalary: %d", event.get("teamName"), event.get("totalSalary")));
    }
}
